<template>
	<view>
		<web-view id='webView' :src="src" @onPostMessage="onPostMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			}
		},
		onLoad(options) {	
			this.src = options.src
		},
		onReady() {
			// console.log(document.title)
			// var webView = plus.getWebviewById(webView)
			// console.log(webView./title)
		},
		methods: {
			message: function(data){
				console.log(JSON.stringify(data))
			},
			onPostMessage: function(data){
				console.log(JSON.stringify(data))
			},
			load: function(e) {
				console.log(JSON.stringify(e))
			}
		}
	}
</script>

<style>

</style>
